
/**
 * Write a description of class Temperature here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Temperature
{
    // instance variables - replace the example below with your own
    private double temperature;
   

    /**
     * Constructor for objects of class Temperature
     */
    public Temperature()
    {
        // initialise instance variables
        temperature = 0;
    }

    /**
     * Converts temperature to farenheit
     * 
     * @param  temp   an integer representing the temperature
     * @return     the converted temperature;
     */
    public static double getFarenheit(int temp)
    {
        double d = (double) temp;
        d = ((9*d/5) + 32);
        return d;
    }
     /**
     * Converts temperature to celsius
     * 
     * @param  temp   an integer representing the temperature
     * @return     the converted temperature;
     */
    public static double getCelsius(int temp)
    {
        double d = (double) temp;
        d = ((5* (d - 32))/9);
        return d;
    }
    
}
